package com.squapsource.project_euler;

import java.util.List;

import com.squapsource.project_euler.utils.PrimesUtility;

public class Problem10 {

	public static void main(String[] args) {
		long maxNum = 2000000;
		List<Long> primes = PrimesUtility.getPrimesUpToMax(maxNum);
		long sum = 0;
		for (Long prime : primes)
		{
			sum += prime;
		}
		System.out.println(sum);

	}



}
